const home = require('express').Router()

home.get('/', (req, res) => {
	const options = [
	{
		id: 0,
		navName: '首页',
		path: 'indexPage',
		icon: 'el-icon-s-home',
		children: []
	},
	{
		id: 1,
		navName: '文档',
		path: 'document',
		icon: 'el-icon-s-order',
		children: []
	},
	{
		id: 2,
		navName: '引导页',
		path: 'guide',
		icon: 'el-icon-s-promotion',
		children: []
	},
	{
		id: 3,
		navName: '权限测试页',
		path: 'permission',
		icon: 'el-icon-lock',
		children: [{
			id: 3001,
			navName: '页面权限',
			path: 'permission/power',
			children: []
		},
		{
			id: 3002,
			navName: '指令权限',
			path: 'permission/directive',
			children: []
		},
		{
			id: 3003,
			navName: '角色权限',
			path: 'permission/role',
			children: []
		}]
	},
	{
		id: 4,
		navName: '图标',
		path: 'icons',
		icon: 'el-icon-info',
		children: []
	},
	{
		id: 5,
		navName: '组件',
		path: 'components',
		icon: 'el-icon-s-grid',
		children: [
			{
				id: 5001,
				navName: '富文本编辑器',
				path: 'components/editor',
				children: []
			},
			{
				id: 5002,
				navName: 'markdown',
				path: 'components/markdown',
				children: []
			},
			{
				id: 5004,
				navName: 'Splitpane',
				path: 'components/splitpane',
				children: []
			},
			{
				id: 5005,
				navName: '头像上传',
				path: 'components/upload-head',
				children: []
			},
			{
				id: 5012,
				navName: 'Sortablejs',
				path: 'components/sortablejs',
				children: []
			}
		]
	},
	{
		id: 6,
		navName: '图表',
		icon: 'el-icon-s-data',
		path: 'echarts',
		children: [
			{
				id: 6001,
				navName: '键盘图表',
				path: 'echarts/key',
				children: []
			},
			{
				id: 6002,
				navName: '折线图',
				path: 'echarts/line',
				children: []
			},
			{
				id: 6003,
				navName: '混合图表',
				path: 'echarts/mick',
				children: []
			}
		]
	},
	{
		id: 8,
		navName: 'Table',
		path: 'routers/table',
		icon: 'el-icon-date',
		children: [
			{
				id: 8001,
				navName: '动态 Table',
				path: 'routers/dynctable',
				children: []
			},
			{
				id: 8002,
				navName: '拖拽 Table',
				path: 'routers/draptable',
				children: []
			},
			{
				id: 8003,
				navName: 'Table 内编辑',
				path: 'routers/edit',
				children: []
			},
			{
				id: 8004,
				navName: '综合 Table',
				path: 'routers/mick',
				children: []
			}
		]
	},
	{
		id: 9,
		navName: '综合案列',
		icon: 'el-icon-s-help',
		path: 'caselist',
		children: [
			{
				id: 9001,
				navName: '创建文章',
				path: 'caselist/createarticle',
				children: []
			},
			{
				id: 9002,
				navName: '文章列表',
				path: 'caselist/list',
				children: []
			}
		]
	},
	{
		id: 10,
		navName: 'Tab',
		icon: 'el-icon-tickets',
		path: 'tab',
		children: []
	},
	{
		id: 11,
		navName: '错误页面',
		icon: 'el-icon-error',
		path: 'errors',
		children: [
			{
				id: 11001,
				navName: '401',
				path: 'errors/401',
				children: []
			},
			{
				id: 11002,
				navName: '404',
				path: 'errors/404',
				children: []
			}
		]
	},
	{
		id: 13,
		navName: 'Excel',
		path: 'excel',
		icon: 'el-icon-notebook-2',
		children: [
			{
				id: 13001,
				navName: '导出 Excel',
				path: 'excel/out',
				children: []
			},
			{
				id: 13002,
				navName: '导出已选事项',
				path: 'excel/outitem',
				children: []
			},
			{
				id: 13003,
				navName: '导出多级表头',
				path: 'excel/outmany',
				children: []
			},
			{
				id: 13004,
				navName: '上传 Excel',
				path: 'excel/uploadexcel',
				children: []
			}
		]
	},
	{
		id: 14,
		navName: 'Zip',
		path: 'zip',
		icon: 'el-icon-collection',
		children: [
			{
				id: 14001,
				navName: 'Export Zip',
				path: 'zip/export',
				children: []
			}
		]
	},
	{
		id: 15,
		navName: 'PDF',
		path: 'pdf',
		icon: 'el-icon-files',
		children: []
	},
	{
		id: 16,
		navName: '滤镜',
		path: 'filter',
		icon: 'el-icon-s-opportunity',
		children: []
	},
	{
		id: 17,
		navName: '国际化',
		path: 'internal',
		icon: 'el-icon-platform-eleme',
		children: []
	},
	{
		id: 18,
		navName: '常用插件',
		path: 'plugins',
		icon: 'el-icon-s-finance',
		children: []
	}
	]
	res.send(options)
})
module.exports = home